public class threeOdd {
    public static boolean threeOdd(int[] array){

        int num = 0;
        for(int i = 0;i < array.length;i ++){
            if(array[i] % 2 == 0){
                num = 0;
            }else{
                num ++;
            }
        }
        if(num == 3){
            return true;
        }else{
            return false;
        }
    }
    public static void main(String[] args) {
        int[] array = new int[] {1,2,3,4,6,7,9};

        System.out.println(threeOdd(array));
    }
}
